﻿<navigation:Page x:Class="KatakPresentationLayer.Views.Teachers" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           xmlns:riaDataControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
           xmlns:riaControls="clr-namespace:System.Windows;assembly=System.Windows.Controls"
                 mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="Teachers Page">
    <Grid x:Name="LayoutRoot">
        <riaDataControls:DataGrid x:Name="grdTeachers" AutoGenerateColumns="False" AlternatingRowBackground="Brown">
            <riaDataControls:DataGrid.Columns>
                <riaDataControls:DataGridTextColumn Header="ID" Binding="{Binding ID}" />
                <riaDataControls:DataGridTextColumn Header="Name" Binding="{Binding Name}" />
                <riaDataControls:DataGridTextColumn Header="Surname" Binding="{Binding Surname}" />
                <riaDataControls:DataGridTextColumn Header="Title" Binding="{Binding Title}" />
                <riaDataControls:DataGridTemplateColumn Header="Photo">
                    <riaDataControls:DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Grid>
                                <Image MaxHeight="100" MaxWidth="100" MinHeight="100" MinWidth="100"  Source="{Binding Photo}"/>
                            </Grid>
                        </DataTemplate>
                    </riaDataControls:DataGridTemplateColumn.CellTemplate>
                </riaDataControls:DataGridTemplateColumn>
            </riaDataControls:DataGrid.Columns>
        </riaDataControls:DataGrid>

    </Grid>
    
</navigation:Page>
